package Com.Isman.WebService.ComplexType;

import java.io.Serializable;

import org.ksoap2.serialization.SoapObject;

public class Map implements Serializable{

	private static final long serialVersionUID = 1L;
	//variable
	private String address;
	private String city;
	private float lat;
	private float lng;
	private String type;
	
	//constructor
	public Map() {}
	public Map(SoapObject value) {
		address = value.getProperty("Address").toString();
		city 	= value.getProperty("City").toString();
		lat 	= Float.parseFloat(value.getProperty("Lat").toString());
		lng 	= Float.parseFloat(value.getProperty("Lng").toString());
		type 	= value.getProperty("Type").toString();
	}
	
	public String getAddress() {
		return address;
	}
	public String getCity() {
		return city;
	}
	public float getLat() {
		return lat;
	}
	public float getLng() {
		return lng;
	}
	public String getType() {
		return type;
	}
	public void setAddress(String address) {
		this.address = address;
	}
	public void setCity(String city) {
		this.city = city;
	}
	public void setLat(float lat) {
		this.lat = lat;
	}
	public void setLng(float lng) {
		this.lng = lng;
	}
	public void setType(String type) {
		this.type = type;
	}
}
